package cn.powerone.scm.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.powerone.common.annotation.Excel;
import cn.powerone.common.core.domain.BaseEntity;

/**
 * 出入库请求记录对象 scm_inventory_log_request
 * 
 * @author PowerOne
 * @date 2025-07-27
 */
public class ScmInventoryLogRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 编号名称 */
    @Excel(name = "编号名称")
    private String idName;

    /** 当前流程状态 */
    @Excel(name = "当前流程状态")
    private Long status;

    /** 处理人员 */
    @Excel(name = "处理人员")
    private String handler;

    /** 请求日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请求日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requestDate;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private String dataSource;

    /** 总额 */
    @Excel(name = "总额")
    private BigDecimal totalAmount;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applicant;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 出入库标识（0-出库，1-入库） */
    @Excel(name = "出入库标识", readConverterExp = "0=-出库，1-入库")
    private Long inOutIndicator;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新人ID */
    @Excel(name = "更新人ID")
    private Long updatedById;


    private List<ScmInventoryLog> scmInventoryLogList;

    public void setScmInventoryLogList(List<ScmInventoryLog> scmInventoryLogList) {
        this.scmInventoryLogList = scmInventoryLogList;
    }
    public List<ScmInventoryLog> getScmInventoryLogList() {
        return scmInventoryLogList;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIdName(String idName) 
    {
        this.idName = idName;
    }

    public String getIdName() 
    {
        return idName;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setHandler(String handler) 
    {
        this.handler = handler;
    }

    public String getHandler() 
    {
        return handler;
    }
    public void setRequestDate(Date requestDate) 
    {
        this.requestDate = requestDate;
    }

    public Date getRequestDate() 
    {
        return requestDate;
    }
    public void setDataSource(String dataSource) 
    {
        this.dataSource = dataSource;
    }

    public String getDataSource() 
    {
        return dataSource;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setApplicant(String applicant) 
    {
        this.applicant = applicant;
    }

    public String getApplicant() 
    {
        return applicant;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setInOutIndicator(Long inOutIndicator) 
    {
        this.inOutIndicator = inOutIndicator;
    }

    public Long getInOutIndicator() 
    {
        return inOutIndicator;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedById(Long updatedById) 
    {
        this.updatedById = updatedById;
    }

    public Long getUpdatedById() 
    {
        return updatedById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("idName", getIdName())
            .append("status", getStatus())
            .append("handler", getHandler())
            .append("requestDate", getRequestDate())
            .append("dataSource", getDataSource())
            .append("totalAmount", getTotalAmount())
            .append("applicant", getApplicant())
            .append("applyTime", getApplyTime())
            .append("inOutIndicator", getInOutIndicator())
            .append("updatedAt", getUpdatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedById", getUpdatedById())
            .toString();
    }
}
